<template>
  <div>
    <h1>我是一个Vue的单页面组件</h1>
    {{msg}}
  </div>
</template>

<script>
export default {
  name: 'MyVue',
  data () {
    return {
      msg: 'Hello!'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  h1{
    color: red;
  }
</style>
